/**
 * @title HHAdminAction.java
 * @description 	管理后台主页动作文件
 * @create 			2012-7-25 上午11:56:17 By xjiujiu
 * @package 		apps.admin.action
 * @copyright 		Copyright (c) 2011-2012 http://xyrj.hhtc.edu.cn.com. All right reserved
 * @version         $Id$
 * XYRJ-Java-Project
 */

package apps.admin.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xyrj.mvc.HHAction;

/**
 * Admin系统管理员Action
 * @ClassName: HHAdminAction 
 * @Description:
 * @author maoyun0903(maoyun19900818@163.com);
 * @date 2012-10-8 下午8:59:35 
 * @version V1.0
 */
public class HHAdminAction extends HHAction {

	/**
	 * @see HHAction#HHAction(HttpServletRequest, HttpServletResponse)
	 */
	public HHAdminAction(HttpServletRequest request,
			HttpServletResponse response) {
		super(request, response);
	}

	/**
	 * 管理主页方法
	 * 
	 * @description
	 * 
	 * @title index
	 * @return void
	 * @throws
	 */
	public void index() {
		if (this._view.getSessionAttr("xyrj_user_name") == null) {
			this._view.setRequestAttr("hintInfo", "请输入正确的URL");
			this._view.display("admin/login.jsp");
		}
		this._view.setRequestAttr("modelEnName", "user");
		this._view.setRequestAttr("modelZhName", "网站用户");
		this._view.display("admin/index.jsp");
	}

}
